<?php
$filename="../Lib/CollcetLib/{$_POST['host']}.inc.php";
$result['code']=0;
if(file_exists($filename)){
    $f=fopen($filename,"r");
    $result['source']=fread($f,filesize($filename));
    fclose($f);
    $result['code']=1;
}else{
    $filename="../Lib/CollcetLib/public.inc.php";
    $f=fopen($filename,"r");
    $result['source']=fread($f,filesize($filename));
    fclose($f);
    $result['code']=1;
}
echo json_encode($result);